package com.gusil.pointservice.controller;

import com.gusil.commonmodule.entity.OrderEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/point")
public class PointController {

    @GetMapping(value = "/test")
    public String test() {
        return "test-point";
    }

    @PostMapping("/add")
    public String add(@RequestBody OrderEntity orderEntity) {
        return "add-point success!2222 :" + orderEntity.getProductionName();
    }

    @PostMapping("/add2")
    public String add2(@RequestParam("productionName") String productionName) {
        return "add-point success! :" + productionName;

    }
}
